﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;


public class RightNWrong
{
    public float x;
    public float y;
    public int progressBar;
    public bool right;
    public Text text;

    //public void Draw(ScoreCanvas canvas,bool right)
    public Text Draw(ScoreCanvas canvas, Paint rightPaint, Paint wrongPaint)
    {

        if (right)
            return canvas.DrawText("√", x, y, rightPaint, "judge");// Color.green);
        else
            return canvas.DrawText("x", x, y, wrongPaint, "judge");// Color.red);

        //if (right)
        //{
        //    text.text = "√";
        //    text.color = Color.green;
        //}
        //else
        //{
        //    text.text = "x";
        //    text.color = Color.red;
        //}
    }
}
